package com.itdfq.shutdown.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author GocChin
 * @Date 2021/7/23 13:42
 * @Blog: itdfq.com
 * @QQ: 909256107
 * @Description:
 */
@RestController
@Slf4j
public class TestController {
    @RequestMapping("/work")
    public String working() throws InterruptedException {
        log.warn("开始处理业务");
        Thread.sleep(100000);
        log.warn("结束处理业务");
        return "业务处理完成";
    }
}
